package com.jhw.ymcc.service.impl;

import com.jhw.ymcc.domain.Permission;
import com.jhw.ymcc.mapper.PermissionMapper;
import com.jhw.ymcc.service.IPermissionService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author jh
 * @since 2022-09-23
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> selectPermissionsByLoginId(Long id) {
        return permissionMapper.selectPermissionsByLoginId(id);
    }
}
